package de.uni_stuttgart.ipvs.ids.summation;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Interface for a RMI service offering the computation of sums.
 * @author Team 3/4 - Elkhan Dadashov, Dhaval A Shah, Patrick Stortz
 */
public interface ISummationSession extends Remote {

	/**
	 * Add the given value to the current sum.
	 */
	public void add(int value) throws RemoteException;
	
	/**
	 * Return the current sum.
	 */
	public int getSum() throws RemoteException;
	
}
